﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Data;

    public class Dcms_TempLateBLL
    {
        private IDcms_TempLateDAL tOp = Dcms.DALFactory.DALFactory.CreateDcms_TempLate();

        public Dcms_TempLateModel AddModel(Dcms_TempLateModel model)
        {
            return this.tOp.AddModel(model);
        }

        public void DeleteModelByID(int ID)
        {
            this.tOp.DeleteModelByID(ID);
        }

        public int GetMaxId()
        {
            return this.tOp.GetMaxId();
        }

        public Dcms_TempLateModel GetModelByID(int ID)
        {
            return this.tOp.GetModelByID(ID);
        }

        public DataTable GetModelList()
        {
            return this.tOp.GetModelList();
        }

        public Dcms_TempLateModel Update(Dcms_TempLateModel model)
        {
            return this.tOp.Update(model);
        }
    }
}

